package com.nd.qa.shareplate.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nd.qa.shareplate.IDao.TestApkMapper;
import com.nd.qa.shareplate.model.ShareTestApk;
import com.nd.qa.shareplate.service.TestApkService;

@Service("com.nd.qa.shareplate.service.TestApkService")
public class TestApkServiceImpl implements TestApkService {

	@Autowired
	private TestApkMapper testApkMapper;
	
	@Override
	public List<ShareTestApk> totalTestApk(ShareTestApk shareTestApk) {
		return testApkMapper.totalTestApk(shareTestApk);
	}

	@Override
	public List<ShareTestApk> queryLimitTestApk(HashMap<String, Object> param) {
		return testApkMapper.queryLimitTestApk(param);
	}

	@Override
	public void insertTestInfo(ShareTestApk shareTestApk) {
		testApkMapper.insertTestInfo(shareTestApk);
	}

	@Override
	public void deleteTestApkById(ShareTestApk shareTestApk) {
		testApkMapper.deleteTestApkById(shareTestApk);
	}

	@Override
	public ShareTestApk queryTestApkByName(ShareTestApk shareTestApk) {
		return testApkMapper.queryTestApkByName(shareTestApk);
	}

	@Override
	public void updateTestInfo(ShareTestApk shareTestApk) {
		testApkMapper.updateTestInfo(shareTestApk);
	}

	@Override
	public List<ShareTestApk> searchTestApk(ShareTestApk shareTestApk) {
		return testApkMapper.searchTestApk(shareTestApk);
	}

}
